Murugan.com
Murugan Andezuthu Dharmaratnam

  |  HOME   |  BLOG   |  TWITTER   |  ARTICLES   |  8086  |  C++   |  VC++   |  ASP .NET   |  VB .NET   |  JAVA SCRIPT   |  MS SQL   |  PHP   |  MY   |  VIDEOS   |  DOWNLOADS   |  CONTACT ME   |  



8086 interrupt ah 08 int 10h to read character at current cursor position


Home  > 8086  > interrupt list  > int 10 video interrupt  > 8086 interrupt ah 08 int 10h to read character at current cursor position 
       
video mode interrupt to read character

INT 10 - VIDEO - READ CHARACTER AND ATTRIBUTE AT CURSOR POSITION
	AH = 08h
	BH = page number (00h to number of pages - 1) (see #0009)
Return: AH = character's attribute (text mode only) (see #0013)
	AL = character
Notes:	for monochrome displays, a foreground of 1 with background 0 is
	  underlined
	the blink bit may be reprogrammed to enable intense background colors
	  using AX=1003h or by programming the CRT controller
	the foreground intensity bit (3) can be programmed to switch between
	  character sets A and B on EGA and VGA cards, thus enabling 512
	  simultaneous characters on screen.  In this case the bit's usual
	  function (intensity) is regularly turned off.
	in graphics modes, only characters drawn with white foreground pixels
	  are matched by the pattern-comparison routine
SeeAlso: AH=09h,AX=1003h,AX=1103h,AH=12h/BL=37h,AX=5001h

Bitfields for character's display attribute:
Bit(s)	Description	(Table 0013)
 7	foreground blink or (alternate) background bright (see also AX=1003h)
 6-4	background color (see #0014)
 3	foreground bright or (alternate) alternate character set (see AX=1103h)
 2-0	foreground color (see #0014)
SeeAlso: #0025

(Table 0014)
Values for character color:
	Normal		Bright
 000b	black		dark gray
 001b	blue		light blue
 010b	green		light green
 011b	cyan		light cyan
 100b	red		light red
 101b	magenta		light magenta
 110b	brown		yellow
 111b	light gray	white
Int 10 AH 00 Set Video Mode

8086 Set Text Mode Cursor Shape Int 10H AH 01

8086 interrupt 10h function 02h to set the cursor position

index

8086 Assembly Lanuage Interrupt int10h Function 03H Get The Cursor Position

8086 int 10h function 05 to set the active display page

8086 interrupt 10h function 06h int10 ah 06h to scroll up the windows

8086 video interrupt 10h function 07 to scroll down the window

8086 interrupt ah 08 int 10h to read character at current cursor position

8086 int to display a character in10h function 09



  |  HOME   |  BLOG   |  TWITTER   |  ARTICLES   |  8086  |  C++   |  VC++   |  ASP .NET   |  VB .NET   |  JAVA SCRIPT   |  MS SQL   |  PHP   |  MY   |  VIDEOS   |  DOWNLOADS   |  CONTACT ME   |  

Copyright 2009 @ Murugan Andezuthu Dharmaratnam